Skip to content

[Enhancement] Removed Db() class and updated to use MultiAsicDb() class#1312

Closed
abdosi wants to merge 9 commits intosonic-net:masterfrom
abdosi:multi_asic_db
Closed

[Enhancement] Removed Db() class and updated to use MultiAsicDb() class#1312
abdosi wants to merge 9 commits intosonic-net:masterfrom
abdosi:multi_asic_db

Conversation

@abdosi
Copy link
Copy Markdown
Contributor

@abdosi abdosi commented Dec 16, 2020

What I did:

  • Removed the Db() class and updated all scripts/tests to start using MultiAsicDb()
  • Removed Reference of pass_db and updated to use pass_multi_asic_db

Why I did:
This is done so code is generic and all the multi-asic specific changes are present in utilities_common/multi_asic.py and not spread around in db.py

How I verify:

All the unit tests are passing

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
to use MultiAsicDb(). With this change moved all instances
of pass_db to pass_multi_asic_db.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Dec 16, 2020

This pull request introduces 1 alert when merging 36000b7 into 394b202 - view on LGTM.com

new alerts:

  • 1 for Module is imported with 'import' and 'import from'

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@abdosi abdosi requested review from jleveque and lguohan December 16, 2020 03:06
@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Dec 16, 2020

retest this please

@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Dec 16, 2020

Closing the PR as this can impact other outstanding PR. Will continue to use DB class.

@abdosi abdosi closed this Dec 16, 2020
@abdosi abdosi deleted the multi_asic_db branch December 16, 2020 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant